/*
 *代码由框架生成,任何更改都可能导致被代码生成器覆盖
 *如果数据库字段发生变化，请在代码生器重新生成此Model
 */
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using VolPro.Entity.SystemModels;

namespace VolPro.Entity.DomainModels
{
    [Entity(TableCnName = "设备故障记录表",TableName = "equipmentfailurerecords",DBServer = "SmesDbContext")]
    public partial class equipmentfailurerecords:SmesEntity
    {
        /// <summary>
       ///故障唯一标识
       /// </summary>
       [Key]
       [Display(Name ="故障唯一标识")]
       [MaxLength(64)]
       [Column(TypeName="nvarchar(64)")]
       [Editable(true)]
       [Required(AllowEmptyStrings=false)]
       public string FailureID { get; set; }

       /// <summary>
       ///设备ID（补充外键）
       /// </summary>
       [Display(Name ="设备ID（补充外键）")]
       [MaxLength(64)]
       [Column(TypeName="nvarchar(64)")]
       [Editable(true)]
       [Required(AllowEmptyStrings=false)]
       public string EquipmentID { get; set; }

       /// <summary>
       ///故障编码（唯一标识）
       /// </summary>
       [Display(Name ="故障编码（唯一标识）")]
       [MaxLength(64)]
       [Column(TypeName="nvarchar(64)")]
       [Editable(true)]
       [Required(AllowEmptyStrings=false)]
       public string FailureCode { get; set; }

       /// <summary>
       ///故障描述
       /// </summary>
       [Display(Name ="故障描述")]
       [Column(TypeName="nvarchar(max)")]
       [Editable(true)]
       public string FailureDescription { get; set; }

       /// <summary>
       ///故障发生时间
       /// </summary>
       [Display(Name ="故障发生时间")]
       [Column(TypeName="datetime")]
       [Editable(true)]
       [Required(AllowEmptyStrings=false)]
       public DateTime FailureOccurTime { get; set; }

       /// <summary>
       ///处理状态（0=未处理,1=已修复）
       /// </summary>
       [Display(Name ="处理状态（0=未处理,1=已修复）")]
       [Column(TypeName="int")]
       [Editable(true)]
       public int? FailureStatus { get; set; }

       /// <summary>
       ///修复时间
       /// </summary>
       [Display(Name ="修复时间")]
       [Column(TypeName="datetime")]
       [Editable(true)]
       public DateTime? RepairTime { get; set; }

       
    }
}